using System.Runtime.InteropServices;

namespace Recast
{
	public unsafe partial class RecastGlobal
	{
		[StructLayout(LayoutKind.Sequential)]
		public unsafe partial struct rcRegion
		{
			public int spanCount;
			public ushort id;
			public byte areaType;
			public bool remap;
			public bool visited;
			public bool overlap;
			public bool connectsToBorder;
			public ushort ymin;
			public ushort ymax;
			public rcIntArray connections;// = new rcIntArray();
			public rcIntArray floors;// = new rcIntArray();

			public rcRegion(ushort i) : this()
			/*:
            spanCount(0),
            id(i),
            areaType(0),
            remap(false),
            visited(false),
            overlap(false),
            connectsToBorder(false),
            ymin(0xffff),
            ymax(0)*/
			{
				id = i;
				ymin = 0xffff;
				connections = new rcIntArray();
				floors = new rcIntArray();
			}
		}
	}
}
